<?php 
	$LabelHtmlOption = array('style'=>'margin-top:0px;');
	$SelectFieldHtmlOption = array('style'=>'font-size:14pt;width:277px');
	CHtml::$afterRequiredLabel = '';
	CHtml::$beforeRequiredLabel = '* ';
?>
<script src="http://js.nicedit.com/nicEdit-latest.js" type="text/javascript"></script>
<script type="text/javascript">bkLib.onDomLoaded(function() { nicEditors.allTextAreas({buttonList:['fontSize','bold','ol','ul','indent','outdent']}) });</script>
<script type="text/javascript" charset="utf-8">
	$(function(){
		console.log(nicEditors.allTextAreas);
	});
</script>

<div class="form">
<?php
	$form=$this->beginWidget('CActiveForm', array(
	'id'=>'Reference-form',
	'enableClientValidation'=>true,
	//'htmlOptions'=>array('enctype' => 'multipart/form-data'),
	'clientOptions'=>array(
	//	'enctype'=>'multipart/form-data',
		'validateOnSubmit'=>true,
	),
));
?>
<?php if (file_exists(Yii::getPathOfAlias('webroot').'/res/cover/_a'.$model['id'].'.png')): ?>
	<img src="/res/cover/_a<?php echo $model['id'] ?>.png" alt="Cover" title="<?php echo $model['name'] ?>" />
<?php endif ?>
	<table class="form2c">
		<tr >
			<th colspan='2'>
				<h3>Artist Particulars</h3>
			</th>
		</tr>
		<tr ><td style='height:6px'></td><td ></td></tr>
		<tr >
			<td ><?php echo $form->labelEx($model,'name',$LabelHtmlOption); ?></td>
			<td ><?php echo $form->textField($model,'name'); ?>
				<span class='abbr'>
					<div class="hide">
						Name of the artist or group
					</div>
				</span>
				 <?php echo $form->error($model,'name'); ?>
			</td>
		</tr>
		<tr >
			<td ><?php echo $form->labelEx($model,'content',$LabelHtmlOption); ?></td>
			<td ><?php echo $form->textArea($model,'content'); ?>
				 <?php echo $form->error($model,'content'); ?>
			</td>
		</tr>
		<tr >
			<th colspan='2'>
				<h3>Albums Languages</h3>
			</th>
		</tr>
		<tr ><td style='height:6px'></td><td ></td></tr>
		<tr >
			<td >团体专辑语言</td>
			<td >
				<?php echo $form->labelEx($model,'cn',$LabelHtmlOption); ?>
				<?php echo $form->checkBox($model,'cn') ?>
				<?php echo $form->error($model,'cn'); ?>
				<?php echo $form->labelEx($model,'en',$LabelHtmlOption); ?>
				<?php echo $form->checkBox($model,'en') ?>
				<?php echo $form->error($model,'en'); ?>
				<?php echo $form->labelEx($model,'my',$LabelHtmlOption); ?>
				<?php echo $form->checkBox($model,'my') ?>
				<?php echo $form->error($model,'my'); ?>
			</td>
		</tr>
		<tr >
			<th colspan='2'>
				<h3>系统设定</h3>
			</th>
		</tr>
		<tr >
			<td ><?php echo $form->labelEx($model,'artist_status_id',$LabelHtmlOption); ?></td>
			<td ><?php echo $form->dropDownList($model,'artist_status_id',Yii::app()->params['flag']['artistStatus']); ?>
				 <?php echo $form->error($model,'artist_status_id'); ?>
			</td>
		</tr>
		<tr ><td style='height:6px'></td><td ></td></tr>
		<tr >
			<td style='height:20px'></td>
			<td ></td>
		</tr>
		<tr >
			<th >
				
			</th>
			<td >
				<?php echo CHtml::tag('button',array('class'=>'bt3'),'Save'); ?>
			</td>
		</tr>
	</table>
<?php $this->endWidget(); ?>
<div class='clear' style='height:20px;'></div>